function getKeyword() {
    var title = $("#title").val();
    if(title != null && title != ''){
        $.ajax({
            type:"GET",
            url:"/admin/getKeywords?key="+title,
            success:function (result) {
                console.log(result);
                if(result.flag){
                    var data = result.data.data;
                    var baiduList = data.baidu;
                    var baiduRelation = data.baiduRelation;
                    var sogouList = data.sogou;
                    var bignList = data.bing;
                    var content = "";
                    if(baiduList != null && baiduList != '' && baiduList != undefined){
                        content += "百度："+baiduList.join(",")+"<br><br>";
                    }
                    if(baiduRelation != null && baiduRelation != '' && baiduRelation != undefined){
                        content += "百度相关搜索："+baiduRelation.join(",")+"<br><br>";
                    }
                    if(sogouList != null && sogouList != '' && sogouList != undefined){
                        content += "搜狗："+sogouList.join(",")+"<br><br>";
                    }
                    if(bignList != null && bignList != '' && bignList != undefined){
                        content += "bing："+bignList.join(",");
                    }

                    layer.open({
                        type: 1,
                        skin: 'layui-layer-rim', //加上边框
                        area: ['520px', '240px'], //宽高
                        content: content
                    });
                };
            },
            error:function () {
                layer.msg("系统错误！");
            }
        });
    }
}

function copy1() {
    var input = document.querySelector("#copy1");
    input.select();
    if (document.execCommand('copy')) {
        document.execCommand('copy');
        layer.msg("复制成功！");
    }
}